package oop5.printer;

/**
 * @author oldliu
 * @since 1.0
 */
//打印机
public class Printer{
    private String brand;
    private int price;
    //!!!!!!!!!!!!!提供了墨水和纸张的标准，不能认为有这个属性。。。
    private Ink ink;
    private Paper paper;

    public void print(String s){
        System.out.println("这是一台"+brand+"打印机，价格是"+price+"元");
        System.out.println("使用的墨水是"+ink.getColor());
        System.out.println("使用的纸张是"+paper.getSize());
        System.out.println("---"+s+"----");
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public void setInk(Ink ink) {
        this.ink = ink;
    }

    public void setPaper(Paper paper) {
        this.paper = paper;
    }
}
